﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SchoolLibrary.Entity;

namespace SchoolLibrary.Desktop.Report
{
    public partial class BookReport : Form
    {
        public BookReport(List<Book> books)
        {
            InitializeComponent();
            this.BookBindingSource.DataSource = books;
        }

        private void BookReport_Load(object sender, EventArgs e)
        {
            this.reportViewer.RefreshReport();
        }

        private void BookReport_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.reportViewer.LocalReport.ReleaseSandboxAppDomain();
        }
    }
}
